import request from "../utils/request.js"

// 手机验证码
export function validateCode(data) {
	return request.post('/captcha/sms/validateCode', data)
}
// 邮箱验证码
export function youvalidateCode(data) {
	return request.post('/captcha/email/validateCode', data)
}

// 班次
export function classesList(data) {
	return request.get('/system/classes/list', data)
}

// 周期班
export function cycleList(data) {
	return request.get('/cycle/cycle/list', data)
}
// 中间日期
export function getClasses(data) {
	return request.get('/schedule/schedule/getClasses', data)
}
// 选择雇主
export function userList(data) {
	return request.get('/personnel/user/list', data)
}
// 选择人
export function employeeList(data) {
	return request.get('/employee/employee/list', data)
}

// 批量排班保存
export function batchUpdate(data) {
	return request.post('/EmpSchedules/batchUpdate', data)
}

// 假期申请
export function applyLeave(data) {
	return request.post('/h5/applyLeave', data)
}
// 假期列表
export function getPersonHolidays(data) {
	return request.get('/h5/getPersonHolidays', data)
}

// 审批
export function audit(data) {
	return request.post('/h5/audit', data)
}
// 审批列表
export function getApplyList(data) {
	return request.get('/h5/getApplyList', data)
}

// 我的绩效
export function getPerformance(data) {
	return request.get('/h5/getPerformance', data)
}

// 绩效打分
export function getPerformanceScoreList(data) {
	return request.get('/h5/getPerformanceScoreList', data)
}

// 打卡
export function punchIn(data) {
	return request.post('/h5/punchIn', data)
}
// 新增班次
export function Addclasses(data) {
	return request.post('/system/classes', data)
}
// 修改
export function updateclasses(data) {
	return request.put('/system/classes', data)
}
// 删除
export function delclasses(data) {
	return request.del('/system/classes',data)
}

// 周期班新增
export function Addcycle(data) {
	return request.post('/cycle/cycle', data)
}
export function updatecycle(data) {
	return request.put('/cycle/cycle', data)
}
export function delcycle(data) {
	return request.del('/cycle/cycle', data)
}

// // 考勤记录-作废
// export function getAttendance(data) {
// 	return request.get('/details/details/getAttendance', data)
// }

// 邮箱=登录
export function h5Login(data) {
	return request.post('/login/h5Login', data)
}

// 绩效详情
export function tableDe(data) {
	return request.getTwo('/table/table', data)
}

// 绩效打分
export function performanceScore(data) {
	return request.post('/h5/performanceScore', data)
}

// 个人中心
export function personalCenter(data) {
	return request.get('/personal/center', data)
}

// 考勤记录
export function getAttendance(data) {
	return request.get('/h5/getAttendanceRecord', data)
}

// 假期列表
export function getPersonHolidaysList(data) {
	return request.get('/h5/getPersonHolidaysList', data)
}
// 操作日志
export function getOperationLog(data) {
	return request.get('/h5/getOperationLog', data)
}
// 我的更表
export function getMySchedule(data) {
	return request.get('/h5/getMySchedule', data)
}

// 获取假期天数
export function personHolidaysNum(data) {
	return request.get('/h5/personHolidaysNum', data)
}
// 加班申请
export function applyOvertime(data) {
	return request.post('/h5/applyOvertime', data)
}
//当天的考勤记录
export function getTodayAttendanceRecord(data) {
	return request.get('/h5/getTodayAttendanceRecord', data)
}

// 申请修改
export function changeClockInTime(data) {
	return request.post('/h5/changeClockInTime', data)
}

// 考勤打卡记录大列表
export function getAttendanceRecordList(data) {
	return request.get('/h5/getAttendanceRecordList', data)
}

// 获取审批流程
export function getApprovalName(data) {
	return request.get('/h5/getApprovalName', data)
}
// 获取职位信息
export function positionLists(data) {
	return request.get('/system/position/list', data)
}
// 修改个人信息
export function changePersonalInformation(data) {
	return request.post('/h5/changePersonalInformation', data)
}


// 绩效详情
export function getPerformanceInfo(data) {
	return request.get('/h5/getPerformanceInfo', data)
}

// 我的消息
export function getMessage(data) {
	return request.get('/h5/getMessage', data)
}
// 获取所属雇主信息
export function getEmployer(data) {
	return request.get('/h5/getEmployer', data)
}


//更新密码
export function updatePwd(data) {
	return request.post('/personal/updatePwd', data)
}

// 校验验证码
export function checkCode(data) {
	return request.post('/personal/checkCode', data)
}

// 修改密码手机号验证码
export function sendPhoneCode(data) {
	return request.get('/personal/sendPhoneCode', data)
}

// 邮箱验证码
export function sendEmailCode(data) {
	return request.get('/personal/sendEmailCode', data)
}

// 假期剩余
export function getHolidayRemaining(data) {
	return request.get('/h5/getHolidayRemaining', data)
}

// 编辑排版
export function updateC(data) {
	return request.put('/EmpSchedules/updateClasses', data)
}
// 排班发布
export function isPub(data) {
	return request.get('/EmpSchedules/isPub', data)
}

// 消息详情
export function getMessageInfo(data) {
	return request.get('/h5/getMessageInfo', data)
}





































































































































